﻿package mortal.game.view.hardware
{
    import com.greensock.*;
    import flash.events.*;
    import mortal.game.manager.*;
    import mortal.game.resource.*;
    import mortal.game.scene3D.map3D.*;
    import mortal.game.view.common.*;

    public class HardwareIcon extends ActionBaseIcon
    {
        private static var _instance:HardwareIcon;

        public function HardwareIcon(param1:String)
        {
            super(ResFileConst.SolveKadunIcon);
            this.layer = LayerManager.uiLayer;
            return;
        }// end function

        override protected function clickHandler(event:MouseEvent) : void
        {
            super.clickHandler(event);
            this.stopEffect();
            OtherBrowserTipWindow.instance.show();
            return;
        }// end function

        public function tweenPosition() : void
        {
            this.y = 114;
            this.x = SceneRange.display.width / 2;
            TweenLite.to(this, 1, {x:208});
            return;
        }// end function

        override public function stageResize() : void
        {
            this.x = 208;
            this.y = 114;
            return;
        }// end function

        public static function get instance() : HardwareIcon
        {
            if (!_instance)
            {
                _instance = new HardwareIcon(ResFileConst.SolveKadunIcon);
            }
            return _instance;
        }// end function

        public static function hasInstance() : Boolean
        {
            return _instance != null;
        }// end function

    }
}
